﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MeterReadingPlan.aspx.cs" Inherits="WaterApp.Business.MeterReadingPlan" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <title>生成抄表计划</title>
    <link href="../Styles/if.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <div style="width:100%; background-color: #E0E0E0; height:30px; 
                font-family:宋体; font-size:12px; font-weight:bold; line-height:30px;">
      表务=>企业表务=>生成抄表计划
    </div>
    <table>
        <tr>
           <td style="text-align:right;">年份</td>
           <td style="text-align:left;">
              <asp:DropDownList ID="ddrYear" runat="server" Width="158px" AutoPostBack="true"
                                OnSelectedIndexChanged="ddrYear_SelectedIndexChanged">
                 <asp:ListItem Value = "2012" Text="2012"></asp:ListItem>
                 <asp:ListItem Value = "2013" Text="2013"></asp:ListItem>
                 <asp:ListItem Value = "2014" Text="2014"></asp:ListItem>
                 <asp:ListItem Value = "2015" Text="2015"></asp:ListItem>
                 <asp:ListItem Value = "2016" Text="2016"></asp:ListItem>
              </asp:DropDownList>            
           </td> 
           <td></td>
           </tr>
           <tr>
           <td>抄表日</td>
           <td>
             <asp:TextBox ID="tbday" runat="server" Width="150px"></asp:TextBox>
           </td>  
           <td style="text-align:right;">            
             <asp:LinkButton ID="BuilderPlan" runat="server" 
                             OnClick="BuilderPlan_Click" Width="80px" CssClass="linkbutton" 
                             Text="生成计划"></asp:LinkButton>
           </td>
         </tr>
      </table>      
    </div>
    <div>
       <div style="width: 90%; padding: 2px 0px 0px 0px;">
                    <asp:GridView ID="Gvmeterplan" runat="server" Width="100%" AutoGenerateColumns="false"
                              AllowPaging="true" PageSize="15" >
                    <HeaderStyle CssClass="poputopbj" Font-Names="Arial,宋体" Font-Size="12px" /> 
                    <SelectedRowStyle BackColor = "#CCCCCC" ForeColor="black" />
                    <AlternatingRowStyle BackColor="#F7F7F7"></AlternatingRowStyle>
                    <PagerStyle ForeColor="Black" />  
                    <Columns>
                      <asp:BoundField DataField="MeterMM" HeaderText="月份" 
                                      ItemStyle-HorizontalAlign="right"></asp:BoundField>  
                      <asp:BoundField DataField="MeterDay" HeaderText="抄表日" 
                                      ItemStyle-HorizontalAlign="Left" ></asp:BoundField> 
                      <asp:BoundField DataField="MeterDt" HeaderText="抄表日期" 
                                      ItemStyle-HorizontalAlign="Left" ></asp:BoundField> 
                      <asp:BoundField DataField="Memo" HeaderText="备注" 
                                      ItemStyle-HorizontalAlign="Left" ></asp:BoundField>    
                      <asp:BoundField DataField="CreateDt" HeaderText="生成时间" 
                                      ItemStyle-HorizontalAlign="Left" ></asp:BoundField>                                           
                      <asp:TemplateField ItemStyle-Width="30px">
                         <ItemTemplate>
                              <asp:LinkButton ID="linkSel" runat="server" ForeColor="Black" 
                                              CommandName="Select" Text="选择">
                              </asp:LinkButton>
                         </ItemTemplate>
                      </asp:TemplateField>          
                    </Columns>
                   </asp:GridView>
                 </div>
                 <div>
                   <asp:Label ID="lbmessage" runat="server" Width="300px" ForeColor="Red"></asp:Label>
                 </div>
    </div>
    </form>
</body>
</html>
